<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>加载中</title>
</head>

<body>
    <style>
        .loading {
            width: 25%;
            height: 50%;
            margin: 10% auto;
        }

        .loading img {
            width: 100%;
        }
    </style>
    <div class="loading">
        <img src="../../images/loading/jiazai.gif" alt="">
    </div>
    <!-- 3秒后页面跳转，加载完成 -->
    <script>
        var time = 2; //时间,秒
        var timelong = 0;
        function diplaytime() { //时间递减
            document.all.his.innerHTML = time - timelong;
            timelong++;
        }
        function redirect() { //跳转页
            //history.back();
            window.location.href = "../search/searchList.html";//指定要跳转到的目标页面
        }
        timer = setInterval('diplaytime()', 1000);//显示时间
        timer = setTimeout('redirect()', time * 1000); //跳转
    </script>


</body>

</html>